﻿using OPCTreeMonitor.SQLdb.dbModel;
using SqlSugar;

namespace OPCTreeMonitor.SQLdb.Infrastructure
{

    public class OPCStorageModel
    {

        public IRepository<LogRecord> LogRecordRepository { get; private set; }
        public IRepository<LogToCSV> LogToCSVRepository {  get; private set; }
        public OPCStorageModel(SqlSugarClient db)
        {

            LogRecordRepository = new RepositoryBase<LogRecord>(db);
            LogToCSVRepository = new RepositoryBase<LogToCSV>(db);
        }
    }
}
